#include<bits/stdc++.h>
using namespace std;
int b[100001];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    int a[n+1],q=1,ans=n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++)
    {
        for(int j=q;j<i;j++)
        {
            if(a[i]>a[j]&&b[i]==0)
            {
                b[i]=1;
                ans--;
                q=j+1;
            }
        }
    }
    printf("%d",ans);
    return 0;
}
